# coding:utf-8
import MySQLdb


def connectDB():
    db = MySQLdb.connect(host="192.168.80.169", user="credit", passwd="Credit_12345", db="electric_power", port=13306,
                         charset='utf8')
    cursor = db.cursor()
    return cursor


cursor = connectDB()
